home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 17
/
Hot Mix 17.iso
/
HM17_SGI
/
research
/
lib
/
demo_mode.pro
< prev
next >
Wrap
Text File
|
1997-07-08
|
777b
|
40 lines
; $Id: demo_mode.pro,v 1.3 1997/01/15 03:11:50 ali Exp $
;
; Copyright (c) 1991-1997, Research Systems, Inc. All rights reserved.
; Unauthorized reproduction prohibited.
;
;+
; NAME:
; DEMO_MODE
;
; PURPOSE:
; Returns true if IDL is in Demo Mode.
;
; CALLING SEQUENCE:
; Result = DEMO_MODE()
;
; OUTPUTS:
; Returns 1 if IDL is in Demo Mode and 0 otherwise.
;
; SIDE EFFECTS:
; Does a FLUSH, -1.
;
; PROCEDURE:
; Do a FLUSH, -1 and trap the error message.
;
; MODIFICATION HISTORY:
; Written by SMR, Research Systems, Inc. Feb. 1991
; KDB Oct,1993: The error string had an extra ' ' in it and
; the function would always return 0.
;-
FUNCTION DEMO_MODE
!err=0
FLUSH, -1
return, ((!err ne 0) and $
(!ERR_STRING EQ 'FLUSH: Feature disabled for demo mode.'))
END